import { DEFAULT_LAYOUT } from '../base';
import { AppRouteRecordRaw } from '../types';

const LIST: AppRouteRecordRaw = {
  path: '/promotion',
  name: 'promotion',
  component: DEFAULT_LAYOUT,
  meta: {
    locale: 'menu.promotion',
    requiresAuth: true,
    icon: 'icon-user',
    order: 7,
  },
  children: [

    {
      path: 'promotion-activity',
      name: 'Activity',
      component: () => import('@/views/promotion/activity/index.vue'),
      meta: {
        locale: 'menu.promotion.activity.list',
        requiresAuth: true,
        roles: ['*'],
      },
    },


    {
      path: 'promotion-banner',
      name: 'Banner',
      component: () => import('@/views/promotion/banner/index.vue'),
      meta: {
        locale: 'menu.promotion.banner.list',
        requiresAuth: true,
        roles: ['*'],
      },
    },


    {
      path: 'promotion-column',
      name: 'Column',
      component: () => import('@/views/promotion/column/index.vue'),
      meta: {
        locale: 'menu.promotion.column.list',
        requiresAuth: true,
        roles: ['*'],
      },
    },

    {
      path: 'promotion-coupon',
      name: 'Coupon',
      component: () => import('@/views/promotion/coupon/index.vue'),
      meta: {
        locale: 'menu.promotion.coupon.list',
        requiresAuth: true,
        roles: ['*'],
      },
    },

    {
      path: 'promotion-seckill',
      name: 'Seckill',
      component: () => import('@/views/promotion/seckill/index.vue'),
      meta: {
        locale: 'menu.promotion.seckill.list',
        requiresAuth: true,
        roles: ['*'],
      },
    },

    {
      path: 'promotion-seckillOrder',
      name: 'SeckillOrder',
      component: () => import('@/views/promotion/seckillOrder/index.vue'),
      meta: {
        locale: 'menu.promotion.seckillOrder.list',
        requiresAuth: true,
        roles: ['*'],
      },
    }


  ],
};

export default LIST;
